<?php

/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/20 15:39
 * Desc: 退款
 */
class Request_Api_V2_Refund extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);

        $this->validation->rule('mid', ['Rule_Member', 'need_member']);
    }

    public function check_refund()
    {
        $this->rules = [
            ['order_id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function get_info()
    {
        $this->rules = [
            ['order_id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function refund_apply()
    {
        $this->rules = [
            ['order_id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function cancel_refund_apply()
    {
        $this->rules = [
            ['order_id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];

        return $this;
    }
}